package com.justgame.project.generator.enums;

import lombok.Getter;
import lombok.RequiredArgsConstructor;

@Getter
@RequiredArgsConstructor
public enum FilterType {
    /**
     * 等于
     */
    IS("is","eq"),
    /**
     * 不等于
     */
    IS_NOT("isNot","ne"),
    /**
     * 或者
     */
    OR("or","or"),
    /**
     * 存在于
     */
    IN("in","in"),
    /**
     * 不存在于
     */
    NOT_IN("notIn","notIn"),
    /**
     * 介于...之间
     */
    BETWEEN("between","between"),
    /**
     * 不介于...之间
     */
    NOT_BETWEEN("notBetween","notBetween"),
    /**
     * 存在...
     */
    HAVING("having","having"),
    /**
     * 类似于
     */
    LIKE("contains","like"),
    /**
     * 大于
     */
    GT("greaterThan","gt"),
    /**
     * 小于
     */
    LT("lessThan","lt"),
    /**
     * 为空
     */
    IS_NULL("isNull","isNull"),
    /**
     * 不为空
     */
    NOT_NULL("notNull","isNotNull");
    /**
     * 描述
     */
    final String serviceMethodName;
    final String wrapperMethodName;
}
